<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddTypeToYzPaymentsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('yz_payments', function (Blueprint $table) {
            //
            $table->tinyInteger('type')->default(0)->comment('充值类型:1,D币充值; 2,VIP充值');
            $table->tinyInteger('vip_id')->default(0)->comment('vip类型的id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('yz_payments', function (Blueprint $table) {
            $table->dropColumn('type');
            $table->dropColumn('vip_id');
        });
    }
}
